home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr31 / dim14a.zip / DIM.DOC next >
Text File  |  1993-04-18  |  17KB  |  363 lines

  1. ============================================================================
  2.                        Disk IMage Archiver  V 1.4.A
  3.               Copyright (C) 1992, 1993 by Ray (Arsen) Arachelian
  4.                            All Rights Reserved
  5.  
  6. ----------------------------------------------------------------------------
  7.  
  8. Warranty, License, and Documentation File:
  9.  
  10. ----------------------------------------------------------------------------
  11.  
  12. Warranty:   Simply put, there ain't none.  There are no warranties, express
  13.             or implied, including, but not limited to the merchantability,
  14.             or fitness of this software.  Use it at your own risk.
  15.             At no time shall the author be liable for any lost profits or
  16.             savings or for any indirect, special, or consequential
  17.             damages arising out of the use, abuse or misuse of this software
  18. ----------------------------------------------------------------------------
  19.  
  20. License:    You, the user, may freely distribute this software without
  21.             modification, and with all the accompanying documentation and
  22.             files as you have yourself received it.
  23.  
  24.             You may charge a small duplication fee for the disk on which
  25.             this software is stored, but the duplication fee is not to 
  26.             exceede five dollars ($5.00 USA Currency.)  This software may
  27.             be placed in an on-line archive system, such as bulletin
  28.             board systems, ftp sites, etc.
  29.  
  30.             This software may be distributed by shareware distributors
  31.             on floppy disk or CD-ROM media provided that there is no
  32.             special price for obtaining the DIM program.  If DIM is to
  33.             be distributed as part of a CD-ROM archive, the CD-ROM may
  34.             be priced over $5.00, however the CD-ROM archive must
  35.             also contain other shareware programs. (IE: You can't sell
  36.             a CD with just DIM on it.)
  37.  
  38.             You may use this software freely for a trial period of two weeks.
  39.             After this period, if you find the software useful, and wish to
  40.             continue using this software, you will register it by filling
  41.             out the registration form, and mailing it to the author (that's
  42.             me,) along with the proper registration fee which applies to you
  43.             or your company.
  44.  
  45.             Should you decide not to register this software, you will not
  46.             use DIM for any purpose other than distributing it to others.
  47.             (IE: If you don't pay for it, you can give out copies to your
  48.             friends, but you're not allowed to use it yourself until you
  49.             send in the registration fee.)
  50.  
  51.             Any other use or distribution of this software is prohibited.
  52.             Using this software without registration past the two week
  53.             trial period is prohibited.
  54.  
  55.             By using DIM, you agree to abide by these terms.
  56.  
  57. -----------------------------------------------------------------------------
  58.  
  59. Documentation:
  60.  
  61.   Usage:
  62.               DIM {command} {floppy_drive} {file_name} {options}
  63.  
  64.  
  65. Where command is:
  66.  
  67.    -i         Display information about the DIM {file_name}
  68.  
  69.    -m         Make an image of the disk in the {floppy_drive} and store
  70.               that image in the {file_name}
  71.  
  72.    -r         Restore an image of the disk to the {floppy_Drive} from
  73.               the image in the {file_name}
  74.  
  75.    -c         Copy diskettes in the {floppy_drive}, using the {file_name}
  76.               to store a temporary image of the diskettes.  You will be
  77.               prompted to insert diskettes.   After copying, the {file_name}
  78.               will be deleted unless the -nd option flag is used.
  79.  
  80.    -rc        Restore to multiple copies.  Same as -c command, but
  81.               instead of asking for a source disk, it uses the {file_name}
  82.               image, and does not delete the {file_name.}  Useful for making
  83.               multiple copies of a disk from an existing image.
  84.  
  85.    -d         Duplicate diskettes from one drive to another.  The format
  86.               of this command is:
  87.  
  88.               DIM -d {source_drive} {target_drive} {options}
  89.  
  90.               Note the order of the source and target drives.  No disk image
  91.               will be created.  Also note that this method is slower than
  92.               using the -c command, however it can be used to convert a
  93.               5.25" diskette in one drive to a formatted 3.5" diskette in
  94.               the target drive.
  95.  
  96.    -e:{pwd}   Encrypt a diskette with a password.  The password may be upto
  97.               63 characters in size.  This command will either encrypt or
  98.               decrypt a diskette.  To encrypt a diskette use the -e:{pwd}
  99.               command once.  To decrypt a diskette use the -e:{pwd} command
  100.               again.  Note that if you enter a wrong password when you wish
  101.               to decrypt a diskette, you must first encrypt the diskette
  102.               with that same wrong password before you can attempt to
  103.               decrypt it with the correct one.
  104.  
  105. Where floppy_drive is:
  106.  
  107.               a physical floppy drive containing a formatted disk. Never
  108.               specify a hard drive for this parameter.  (Dim will not
  109.               format disks, make sure you have formatted your disks
  110.               before restoring, or copying to them.)
  111.  
  112.  
  113. Where file_name is:
  114.  
  115.               any legal DOS file name.  The default extentsion to this file
  116.               is .DIM.  The default file name is $DISK.DIM. This file cannot
  117.               reside on the disk in the {floppy_drive}.  Since image files
  118.               will be slightly larger than the source disk capacity, it is
  119.               reccomended that you store images on a hard drive,  a network
  120.               drive, or at least a floppy drive of higher capacity than the
  121.               original floppy.
  122.  
  123.  
  124. Where options are:
  125.  
  126.     -bat        Batch file mode.  This mode will suppress all keyboard
  127.                 waits, and assume "Yes" for all conversion warnings. Use
  128.                 this with care since it will not ask you to confirm that
  129.                 you have the right disk in the drive.  Useful for automated
  130.                 operations or when you don't wish to be bothered by
  131.                 conversion warnings.
  132.  
  133.     -v          Verify after writing tracks.  (slower)
  134.                 Applies to the -r, -c, -rc, and -d commands.
  135.  
  136.     -nd         Don't delete temporary file after copy operation (see -c 
  137.                 command above.)  Applies only to the -c command.
  138.  
  139.     -fs:{size}  Force Disk Size appropriate values are 160, 180, 320
  140.                 360, 720, 1200, and 1440.  (Please Do not use -fs:360K
  141.                 instead use only -fs:360, or DIM will ignore your 
  142.                 request.)  If you already know the size of the source
  143.                 disk to make an image from, this option can save 
  144.                 you 5-15 seconds which would normally be used in 
  145.                 analyzing a disk.  Also this option is useful when you
  146.                 wish to extract a disk image from a disk on which you
  147.                 restored an image of a different size. (ie: If you had 
  148.                 a 360K image and restored it to a 1.44, then sometime 
  149.                 later you lost the image file, but required it you 
  150.                 would use the -fs:360 option.)
  151.                 
  152.                 WARNING: If you select the incorrect size, for this
  153.                 option, the disk image will be partial, therefore
  154.                 important data will be lost!  Be careful when using
  155.                 this option.  It is far safer to let DIM analyze the
  156.                 disk.
  157.  
  158.  
  159.     -fd:{trk}:{hds}:{sec}
  160.  
  161.                Force Disk Parameters.  Same as -sf:{size} parameter,
  162.                however this option lets you specify the exact number of
  163.                tracks, heads, and sector you wish to make an image of
  164.                from the disk.
  165.  
  166.    -e:{pwd}    Encrypt a disk image with a password.  The password may
  167.                be upto 63 characters in size.  This is identical to the
  168.                -e:{pwd} command, only this option can be attached to the
  169.                end of any DIM operation involving a disk. (ie: copying
  170.                disks, making / restoring images, etc.)
  171.  
  172.  
  173. ---------------------------------------------------------------------------
  174. Make Self Extracting Disk Image:
  175.  
  176. MKSFXDIM diskimagefile
  177.  
  178. The MKFSXDIM program will take a disk image created by DIM and generate
  179. a self extracting program, which when run will let the user restore the
  180. disk image to a floppy.
  181.  
  182. When a self extracting disk image program is executed without any parameters,
  183. it will return information on the disk image contained within it, and
  184. instructions on extracting the disk image.
  185.  
  186. If you have a disk image file called "MYDISK.DIM", executing MKFSX
  187.  
  188. *NOTE* MKFSXDIM will create a DIM extractor that is incapable of extracting
  189. an encrypted disk image!  Don't use MKFSXDIM on any encrypted images or you
  190. won't be able to distribute them without DIM.
  191.  
  192. ---------------------------------------------------------------------------
  193.  
  194. Examples:
  195.  
  196.  
  197. To make an image of a diskette in drive A: and store that image in
  198. C:\MYDISK.DIM, type the following:
  199.  
  200.     DIM -m a: c:\mydisk.dim
  201.  
  202. To find out the type of disk you will need to restore an image stored
  203. in a file called C:\MYDISK.DIM, type the following:
  204.  
  205.     DIM -i c:\mydisk.dim
  206.  
  207. To restore an image file stored in c:\MYDISK.DIM to a formatted disk in
  208. drive B: type the following:
  209.  
  210.     DIM -r b: c:\mydisk.dim
  211.  
  212. To copy a diskette in drive A:, and keep the temporary file, and also
  213. verifying the diskettes as they are written, type the following:
  214.  
  215.     DIM -c a: c:\mydisk.dim -nd -v
  216.  
  217. To duplicate a disk in drive A: to a formatted diskette in drive B:, type
  218. the following:
  219.  
  220.     DIM -d a: b:
  221.  
  222. To make an image of a diskette in drive A: and store that image in
  223. C:\MYDISK.DIM, and also encrypt the image with "Hello" as the password, 
  224. type the following:
  225.  
  226.     DIM -m a: c:\mydisk.dim -e:hello
  227.  
  228. To restore the image with the password to another disk, type:
  229.  
  230.     DIM -r a: c:\mydisk.dim -e:hello
  231.  
  232.  
  233. To encrypt a disk in drive A: with "Hello" as the password, type the
  234. following:
  235.  
  236.     DIM -e:hello a:
  237.  
  238. To decrypt the same disk, type in:
  239.  
  240.     DIM -e:hello a:
  241.  
  242. * Notice that the same command is used to both encrypt and decrypt a disk.
  243. See the encryption notes below.
  244.  
  245.  
  246. Conversions:
  247.  
  248. You will be warned when converting between diskettes.  If the conversion
  249. is possible, then you will be asked if you wish to continue.  The following
  250. table shows the types of conversions possible.
  251.  
  252. -------------------------------------------------|-------------|
  253. |Image |            Possible Storage             | Disk info:  |
  254. |File  |-----------Physical-Disk Size:-----------|-------------|
  255. |      |160K|180K|320K|360K|720K|1.2M|1.44M|2.88M||TRK|SEC|SIDE|
  256. |------|----|----|----|----|----|----|-----|-----||---|---|----|
  257. |160K  | Y  | Y  | Y  | Y  | Y  | Y  |  Y  |  Y  || 40| 8 | 1  |
  258. |180K  | N  | Y  | Y  | Y  | Y  | Y  |  Y  |  Y  || 40| 9 | 1  |
  259. |320K  | N  | N  | Y  | Y  | Y  | Y  |  Y  |  Y  || 40| 8 | 2  |
  260. |360K  | N  | N  | N  | Y  | Y  | Y  |  Y  |  Y  || 40| 9 | 2  |
  261. |720K  | N  | N  | N  | N  | Y  | Y  |  Y  |  Y  || 80| 9 | 2  |
  262. |1.2M  | N  | N  | N  | N  | N  | Y  |  Y  |  Y  || 80|15 | 2  |
  263. |1.44M | N  | N  | N  | N  | N  | N  |  Y  |  Y  || 80|18 | 2  |
  264. |2.88M | N  | N  | N  | N  | N  | N  |  N  |  Y  || 80|36 | 2  |
  265. ---------------------------------------------------------------|
  266.  
  267. The formula for finding out if you can store an image on to the disk
  268. is simple:
  269.  
  270.  If the number of sides on the image is less than or equal to the disk's AND
  271.  If the number of tracks on the image is less than or equal to the disk's AND
  272.  If the number of sectors on the image is less than or equal to the disk's,
  273.  
  274.  THEN the image may be stored on that diskette.  But it's a lot easier to
  275. just let DIM tell you if it can't be done.
  276.  
  277. The physical format of the target disk will not change, however if you, lets 
  278. say, convert a 360K diskette image to a 1.44M diskette, the 1.44M diskette 
  279. will now have 360K of accessible space.  The rest will be unusable until the
  280. disk is reformatted.
  281.  
  282. If you now make an image of this 1.44M disk, the image will be stored as 1.44
  283. although only 360K of that space will be useful.  It is reccomended that once
  284. you convert a disk to another sized disk, that you use the original image
  285. rather than making an image of the larger disk.  If you by chance have lost
  286. the original 360K image, running DIM on the 1.44M disk will result in a
  287. 1.44M image!  To get the original 360K image off the disk, use the force
  288. disk size option for 360K ( -fs:360 )  Don't guess wrong, or else you'll
  289. wind up with a chopped up disk image that will be totally useless.
  290.  
  291. Provided the diskette you are trying to get an image of, use 512 bytes per
  292. sector (all normal DOS diskettes use 512 bytes per sector,) DIM will be able
  293. to read it.  Provisions have even been made for oddities such as single
  294. sided 3.5" disks or whatever.
  295.  
  296. At the begining of most tasks, you will see "Checking Disk."  At this point
  297. DIM is attempting to asses the type of diskette you are using by counting
  298. the number of sides, number of tracks, and the number of sectors per track
  299. on a diskette.  Provided that a floppy disk can be read and written to via
  300. INT 13h, DIM will work with it.
  301.  
  302. DIM will atart checking from track 38 and walk up to track 255 (if one
  303. exists.)  This speeds up 360K disk analysis by 90% from previous versions
  304. of DIM, and all disks with 80 tracks by 50%.  (for more speed use the
  305. force size option.)
  306.  
  307. If DIM cannot read at least 2 sectors on the first track, it will abort. If
  308. it encounters any errors while trying to read a track, it will assume that
  309. there are no more tracks after the bad track.  If the first sector of a
  310. disk's side is bad, DIM will assume that the side is not used.
  311.  
  312. In other words, DIM will only work properly on disks that have no errors.
  313.  
  314. Infact, DIM's analysis should provide the ability to work with disks that
  315. have upto 99 sectors per track, upto 99 heads (sides), and upto 255 tracks,
  316. so you can rest assured that if IBM wakes up tomorrow and introduces a new
  317. type of floppy media (as it did with the 2.88M disks,) DIM will most likely
  318. be compatible with it.
  319.  
  320. I've used DIM to backup my Coherent 386 diskettes, and it worked.  I've
  321. even used DIM to generate an image of an old CP/M 86 diskette!  As long
  322. as the disk is formatted with 512 bytes per sector, and reasonable tracks
  323. and sectors, DIM will be able to make an image of the disk even when DOS
  324. will refuse to read the disk because they were formatted other operating 
  325. systems!
  326.  
  327. As for memory requirements, DIM will require at least 256K of free
  328. conventional memory, and a 286 or better CPU.  If you wish to use DIM with
  329. an older 8086/8088 machine, please send a blank disk with your registration
  330. form, and I shall mail you a compatible version.
  331.  
  332. Notes on the encryption employed by DIM:
  333.  
  334.  
  335.               The encrypt operation is a two way process, that is it can be
  336.               used to both encrypt and decrypt a diskette.  The encryption
  337.               used by DIM is a XOR type encryption with the password and the
  338.               position of the character within the track, and thus it is
  339.               not very secure, (not as secure as DES), however for most
  340.               usage, it will suffice.
  341.  
  342.               The password to the encrypted disk is not stored anywhere,
  343.               so there is no way for me to recover disks which were encrypted.
  344.               Should you forget the password, you're out of luck.
  345.  
  346.               The two way encryption method was chosen because of its added
  347.               security.  The only way to break the security is by brute
  348.               force, which will take a very very long time since each password
  349.               is upto 63 letters in length.
  350.  
  351.               However, to use a brute method to break the encryption, you'd
  352.               have to first try a password by encrypting the disk, then you'd
  353.               have to decrypt the disk with that same password before trying
  354.               to guess again.  It'll be a very long time before you would
  355.               even come close to breaking it, so don't bother.
  356.  
  357.               If however you're interested in adding more security to your
  358.               encrypted disk, encrypt the disk two or three times with
  359.               different passwords.
  360.               
  361.  
  362. Enjoy, and don't forget to send in your registration fee!
  363.